|
|
@@ -30,7 +30,12 @@ end
|
30
|
30
|
check_login!
|
31
|
31
|
|
32
|
32
|
info = capture("heroku info")
|
33
|
|
-if info =~ /No app specified/i
|
|
33
|
+if info =~ /Incomplete credentials detected/i
|
|
34
|
+ puts info
|
|
35
|
+ puts
|
|
36
|
+ puts "When this is resolved, please run 'bin/setup_heroku' again."
|
|
37
|
+ exit
|
|
38
|
+elsif info =~ /No app specified/i
|
34
|
39
|
puts "It looks like you don't have a Heroku app set up yet for this repo."
|
35
|
40
|
puts "You can either exit now and run 'heroku create', or I can do it for you."
|
36
|
41
|
if yes?("Would you like me to create a Heroku app for you now in this repo?")
|